package com.coin900.coin.persist.coin;

import com.coin900.coin.persist.FuVO;

/**
 * 代币和币的比例
 *
 * @author shui
 * @create 2018-1-24
 */
public class CoinTokenCoinVO extends FuVO {

    /**
     * 代币 id
     */
    private Long tokenId;

    /**
     * coin_coin id
     */
    private Long coinId;

    /**
     * 代币:币=1:proportion
     */
    private Double proportion;

    /***** 非持久化数据 START *****/

    /**
     * 币的名称
     */
    private String coinName;

    /***** 非持久化数据 END *****/

    public Long getTokenId() {
        return tokenId;
    }

    public void setTokenId(Long tokenId) {
        this.tokenId = tokenId;
    }

    public Long getCoinId() {
        return coinId;
    }

    public void setCoinId(Long coinId) {
        this.coinId = coinId;
    }

    public Double getProportion() {
        return proportion;
    }

    public void setProportion(Double proportion) {
        this.proportion = proportion;
    }

    public String getCoinName() {
        return coinName;
    }

    public void setCoinName(String coinName) {
        this.coinName = coinName;
    }

    @Override
    public String toString() {
        return super.toString() +
                "CoinTokenCoinVO{" +
                "tokenId=" + tokenId +
                ", coinId=" + coinId +
                ", proportion=" + proportion +
                ", coinName=" + coinName +
                '}';
    }
}